﻿using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;

public class SceneItemUI : MonoBehaviour, IPointerClickHandler 
{
    public SceneObject sceneObj;
    public Action SelectitemEvent;

    public GameObject Selected;

	// Use this for initialization
	void Start () 
    {
		
	}
	
	// Update is called once per frame
	void Update () 
    {
		
	}

    public void OnPointerClick(PointerEventData eventData)
    {
        SelectitemEvent();
    }

    public void SetSelect(bool isOn)
    {
        Selected.SetActive(isOn);
    }
}
